import java.util.*;
public class first {
    public static void main(String[] args) {
        System.out.println("请输入需判断值，end结束");
        Scanner input = new Scanner(System.in);


        while (!input.hasNext("end")){
            String s = input.next();
            Scanner inputs=new Scanner(s);
        if (inputs.hasNextInt()) {
            System.out.println("输入是数字！");
        }else if(inputs.hasNextDouble()){
                System.out.println("是小数");
            } else if(inputs.hasNext()){
            System.out.println("输入值为字符！");
        }}
    }}
